#!/bin/bash
time=(`date +%Y%m%d`)
ETCDCTL_API=3 /usr/bin/etcdctl --debug --endpoints=https://10.200.0.112:2379 \
                      --cacert=/etc/kubernetes/cert/ca.pem --cert=/etc/kubernetes/cert/etcd.pem \
                      --key=/etc/kubernetes/cert/etcd-key.pem snapshot save /data/k8s_nfs/etcd_backup_$time